<template>
  <div>
    <nav-layout :layout="layout"></nav-layout>
    <regustration v-if="layout.indexof === 0"></regustration>
    <claim v-else-if="layout.indexof === 1"></claim>
    <mailModule v-else></mailModule>
  </div>
</template>
<script>
import navLayout from "@/views/NavLayout";
import regustration from "./regustration";
import claim from "./claim";
import mailModule from "./mailModule";
export default {
  data() {
    return {
      layout: {
        nav: ["注册用户信息", "售后申请", "管理邮件模板"],
        indexof: 0
      }
    };
  },
  components: {
    navLayout,
    regustration,
    claim,
    mailModule
  }
};
</script>